/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.dinni.webservicestest.util;

import java.util.HashMap;
import java.util.Hashtable;

/**
 *
 * @author Dinni
 */
public class WebServiceConstants {

    public static String htmlHeader = "<html> " + "<title>" + "WebServicesTest" + "</title>";
    public static String htmlBody = "<body><h3>";
    public static String htmlBodyClosingTag = "</body></h3>";
    public static String htmlHeaderClosingTag = "</html> ";
    public static String defaultBodyString = "give your query in <em>?username=dsc&password=pass</em> format";
    public static HashMap userHash = new HashMap<String, UserData>(10);

    private WebServiceConstants() {        
        //populate userHash
        userHash.put("dsc110@gmail.com", new UserData("pass", "address"));
        userHash.put("arun@gmail.com", new UserData("pass", "address"));
        userHash.put("prashant@gmail.com", new UserData("pass", "address"));
        userHash.put("vijay@gmail.com", new UserData("pass", "address"));
        userHash.put("apple@gmail.com", new UserData("pass", "address"));
        userHash.put("orange@gmail.com", new UserData("pass", "address"));
    }
    private static WebServiceConstants singleInstance;
    public static WebServiceConstants getWebServiceConstants(){
        if(singleInstance == null){singleInstance=new WebServiceConstants();}
        return singleInstance;
    }

    public class UserData {
        public String password;
        public String address;

        public UserData(String password, String address) {
            this.password = password;
            this.address = address;
        }
        
    }
}
